package org.threegroup.mappers;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.threegroup.entity.Goods;

import java.util.List;

public interface GoodsMappers {

    public List<Goods> queryAllGoods();

    public List<Goods> queryGoodsName(String name);

    public boolean updateGoods(String specif,String unit,Double price,String remark,Integer id);

    public boolean updateGoodsStock(Integer stock,Integer id);

    public boolean deleteGoods(Integer id);

    public Integer checkGoodsIfHaveRecord(Integer id);
}
